﻿;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SUPPLY EVENTS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; USAGE:
;
; Basic structure for a supply event:
; { 
; #NAME= Event name (this will be shown as a selectable event under an OPTIONS screen within the game)
; #POPUP= Event popup text (this will be displayed when the event occurs)
; #IMAGE= Event image that will be displayed when event occurs
;         PNG images must be 736x418 or 368x418 pixels, see 'Extras' folder for sample images and frames
;         Multiple pictures can be used by using a ',' to separate them
;         Format: picture1.png, picture2.png, picture3.png, picture4.png
; #SOUND= Event sound that will be displayed when event occurs
;         Multiple sounds can be used by using a ',' to separate them
;         Format: sound1.mp3, sound2.mp3, sound3.mp3, sound4.mp3
; #FLAG= Will this be a default event for the campaign? (values range [0, 1]; True= 1; False= 0)
; #TYPE= Values range [0, 3];
;        With all other fields satisfied will this be:
;        0 = Single check regardless if #TRIGGER is satisfied
;        1 = Multiple check until #TRIGGER is satisfied
;        2 = Reoccuring check until end of game
;                       OR
;        Once the #DATE field is satisfied:
;        3 = Event fires once if all other fields are satisfied, else it will not fire.  Either way, event will be removed never to be looked at again
; #AI= Values range [0, 4]
;      0 = Event fires whenever all fields are satisfied for any game type
;      1 = Event fires whenever all fields are satisfied, for AI games only, and only on the Axis AI turn
;      2 = Event fires whenever all fields are satisfied, for AI games only, and only on the Allied AI turn
;      3 = Event fires whenever all fields are satisfied, for AI and Multiplayer games only, and only on the Axis AI or on the Allied Multiplayer turns
;      4 = Event fires whenever all fields are satisfied, for AI and Multiplayer games only, and only on the Allied AI or on the Axis Multiplayer turns
; #LEVEL= What minimum skill level, as selected from the AI difficulty level screen in game, with this event apply to?
;         Values: [0, 4]; Green= 0; Novice= 1; Intermediate= 2; Veteran= 3; Expert= 4
; #GV= Does the event activate based on the Global Variable values assigned?
;      Ten random Global Variables are assigned at the start of the campaign each with a value between [1,100]
;      Format: GV [min, max]; GV range [1,10]; min range [1,100]; max range [1,100]
;      Example A) #GV= 1[1,100] will always trigger because Global Variable #1 will always have a value between [1,100]
;      Example B) #GV= 4[71,100] will trigger 30% per game
; #LINK= Does the event activate based on the Link values assigned?
;        A campaign can have up to 1100 Decision events and is referenced by other events via this parameter
;        Format: decision[flag]; flag range [0, 1]; True= 1; False= 0
;        Example A) #LINK= 0[0] will always trigger as formal DECISION events can only be from 1-1100
;        Example B) #LINK= 1[0] will trigger whenever #DECISION= 1 is not accepted
;        Example C) #LINK= 3[1] will trigger whenever #DECISION= 3 is accepted
; #TRIGGER= Trigger percentage that the event will occur (values range [0, 100])
; #COUNTRY_ID= Country ID that will be owner of supply event
; #FLAG_ID= Flag ID that will be shown in the popup for this event
; #SEASON_FLAG= Season flag can be used to limit event to a particular season
; #DATE= Date that must be satisfied (in game) for event to occur (format yyyy/mm/dd)
; #SOURCE_POSITION= Map position that could also trigger the event (Format: x,y [unit_id])
; #DESTINATION_RESOURCE= Resource positions that will be affected by event as well as the
;			 resource strength reduction range (Format: x,y [min, max])
; #VARIABLE_CONDITION= Under what variable conditions will this event occur
;                      Format: country_id [political_alignment] [mobilization%] [surrendered_flag]
; }
;
; NOTES:
;
; Each event must be preceded by a '{' and end with a '}'
;
; #SOURCE_POSITION will trigger the event if and only if the unit located there, as specified by
; unit_id, matches #COUNTRY_ID.
;
; A #SOURCE_POSITION does not have to be specified and can be left blank. In this case the
; triggering of the supply event will be dependant on #DATE and the applicable #SEASON_FLAG.
; More than one #SOURCE_POSITION can be set and will be read using OR logic.
;
; #DESTINATION_RESOURCE's will only be effected if they are under enemy control relative to #COUNTRY_ID.
; Enemy or occupier must also be fully active.
; More than one #DESTINATION_RESOURCE can be set.
;
; Under #VARIABLE_CONDITION you can also list countries that have not yet fully entered the war.
; For example by listing an mobilization % less than 100% you are providing a check where the
; #VARIABLE_CONDITION country must meet a minimum mobilization % in order for the event to occur.
; Each #VARIABLE_CONDITION line will be read using AND logic.
;
; Use the reference values provided for #COUNTRY_ID and not the country names
; Use the reference values provided for UNIT ID's and not unit id names
; Use the reference values provided for #SEASON_FLAG and not season names
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; COUNTRY ID REFERENCE VALUES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Country IDs
; #Albania= 3
; #Algeria= 4
; #Baltic States= 8
; #Belgium= 10
; #Bulgaria= 19
; #Canada= 21
; #Denmark= 31
; #Egypt= 36
; #Finland= 39
; #France= 40
; #Germany= 45
; #Greece= 46
; #Hungary= 52
; #Iraq= 56
; #Ireland= 57
; #Italy= 59
; #Libya= 63
; #Luxembourg= 65
; #Morocco= 70
; #Netherlands= 73
; #Norway= 78
; #Palestine= 79
; #Persia= 82
; #Poland= 85
; #Portugal= 87
; #Romania= 93
; #Saudi Arabia= 95
; #Spain= 99
; #Sweden= 103
; #Syria= 105
; #Trans-Jordan= 109
; #Tunisia= 110
; #Turkey= 111
; #Britain= 112
; #United States= 115
; #Russia= 116
; #Vichy France= 118
; #Yugoslavia= 120
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIT ID REFERENCE VALUES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; #UNIT_ID_-1= Any Unit
;
; #UNIT_ID_0= Army Group HQ
; #UNIT_ID_1= Replacements
; #UNIT_ID_3= Infantry Corps
; #UNIT_ID_4= Infantry Corps
; #UNIT_ID_5= Infantry Corps
; #UNIT_ID_7= Commandos
; #UNIT_ID_9= Airborne Corps
; #UNIT_ID_13= Partisans
; #UNIT_ID_15= Interceptors
; #UNIT_ID_17= Artillery
; #UNIT_ID_21= Rockets
; #UNIT_ID_25= Armor Corps
; #UNIT_ID_26= Armor Corps
; #UNIT_ID_27= Armor Corps
; #UNIT_ID_29= Air Fleet
; #UNIT_ID_32= Strategic Bombers
; #UNIT_ID_36= Fleet
; #UNIT_ID_37= Fleet
; #UNIT_ID_41= ASW
; #UNIT_ID_43= Submarines
; #UNIT_ID_46= Troop Transport
; #UNIT_ID_47= Amphibious Transport
; #UNIT_ID_48= Amphibious Transport (LR)
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; POLITICAL ALIGNMENT/DIRECTION REFERENCE VALUES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; NEUTRAL= 0
; AXIS= 1
; ALLIED= 2
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SEASON FLAG REFERENCE VALUES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; ALL_SEASONS= 0
; SPRING= 1
; SUMMER= 2
; FALL= 3
; WINTER= 4
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; Malta limits Axis supply in Libya
{ 
#NAME= Malta Effect (Tobruk, Bengazi)
#POPUP= Malta Hinders Axis Supply In Libya
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#TRIGGER= 20
#COUNTRY_ID= 112
#ALIGNMENT_ID= 0
#FLAG_ID= 112
#SEASON_FLAG= 0
#DATE= 1941/01/01
#SOURCE_POSITION= 122,48 [-1]
#DESTINATION_RESOURCE= 138,53 [1,3]
#DESTINATION_RESOURCE= 139,52 [1,3]
#DESTINATION_RESOURCE= 132,53 [1,3]
#VARIABLE_CONDITION= 112 [2] [100] [0]
}

; Malta limits Axis supply in Egypt
{ 
#NAME= Malta Effect (Alexandria, Port Said, Cairo, Suez)
#POPUP= Malta Hinders Axis Supply In Egypt
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#TRIGGER= 20
#COUNTRY_ID= 112
#ALIGNMENT_ID= 0
#FLAG_ID= 112
#SEASON_FLAG= 0
#DATE= 1941/01/01
#SOURCE_POSITION= 122,48 [-1]
#DESTINATION_RESOURCE= 148,53 [1,3]
#DESTINATION_RESOURCE= 148,54 [1,3]
#DESTINATION_RESOURCE= 150,55 [1,3]
#DESTINATION_RESOURCE= 151,52 [1,3]
#DESTINATION_RESOURCE= 152,53 [1,3]
#DESTINATION_RESOURCE= 151,54 [1,3]
#DESTINATION_RESOURCE= 152,55 [1,3]
#VARIABLE_CONDITION= 112 [2] [100] [0]
}

; Malta limits Axis supply in Libya - Allies Occupy Tobruk
{ 
#NAME= Malta Effect (Tripoli, Beurat, Bengazi)
#POPUP= Malta Hinders Axis Supply In Libya
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#TRIGGER= 25
#COUNTRY_ID= 112
#ALIGNMENT_ID= 0
#FLAG_ID= 112
#SEASON_FLAG= 0
#DATE= 1943/01/01
#SOURCE_POSITION= 138,53 [-1]
#DESTINATION_RESOURCE= 121,52 [1,3]
#DESTINATION_RESOURCE= 122,52 [1,3]
#DESTINATION_RESOURCE= 126,55 [1,3]
#DESTINATION_RESOURCE= 132,53 [1,3]
#VARIABLE_CONDITION= 115 [2] [100] [0]
}

; Fall of Gibraltar
{
#NAME= Fall Of Gibraltar (German Occupied)
#POPUP= Axis Control Of Gibraltar Hinders Allied Supply In Malta
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#TRIGGER= 25
#COUNTRY_ID= 45
#ALIGNMENT_ID= 0
#FLAG_ID= 45
#SEASON_FLAG= 0
#DATE= 1939/09/01
#SOURCE_POSITION= 94,44 [-1]
#DESTINATION_RESOURCE= 122,48 [1,2]
#DESTINATION_RESOURCE= 123,48 [1,2]
#VARIABLE_CONDITION= 59 [1] [100] [0]
}

; Fall of Gibraltar
{
#NAME= Fall Of Gibraltar (Italian Occupied)
#POPUP= Axis Control Of Gibraltar Hinders Allied Supply In Malta
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#TRIGGER= 25
#COUNTRY_ID= 59
#ALIGNMENT_ID= 0
#FLAG_ID= 59
#SEASON_FLAG= 0
#DATE= 1939/09/01
#SOURCE_POSITION= 94,44 [-1]
#DESTINATION_RESOURCE= 122,48 [1,2]
#DESTINATION_RESOURCE= 123,48 [1,2]
#VARIABLE_CONDITION= 59 [1] [100] [0]
}

; French Liberation Isolates Vichy France
{ 
#NAME= French Liberation Isolates Vichy France
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 0
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#TRIGGER= 100
#COUNTRY_ID= 118
#ALIGNMENT_ID= 0
#FLAG_ID= 40
#SEASON_FLAG= 0
#DATE= 1944/01/01
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 110,30 [2,5]
#VARIABLE_CONDITION= 40 [2] [100] [0]
}

; Russian Winter Reduces Supply - Normal
{ 
#NAME= Russian Winter (1941)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 7[1,90]
#LINK= 0[0]
#TRIGGER= 100
#COUNTRY_ID= 116
#ALIGNMENT_ID= 0
#FLAG_ID= 116
#SEASON_FLAG= 4
#DATE= 1941/12/01
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 140,8 [1,3]
#DESTINATION_RESOURCE= 142,11 [1,3]
#DESTINATION_RESOURCE= 139,18 [1,3]
#DESTINATION_RESOURCE= 142,16 [1,3]
#DESTINATION_RESOURCE= 146,16 [1,3]
#DESTINATION_RESOURCE= 146,23 [1,3]
#DESTINATION_RESOURCE= 146,7 [1,3]
#DESTINATION_RESOURCE= 151,13 [1,3]
#DESTINATION_RESOURCE= 152,15 [1,3]
#DESTINATION_RESOURCE= 152,17 [1,3]
#DESTINATION_RESOURCE= 149,18 [1,3]
#DESTINATION_RESOURCE= 151,19 [1,3]
#DESTINATION_RESOURCE= 152,21 [1,3]
#DESTINATION_RESOURCE= 155,21 [1,3]
#DESTINATION_RESOURCE= 154,12 [1,3]
#DESTINATION_RESOURCE= 159,13 [1,3]
#DESTINATION_RESOURCE= 164,25 [1,3]
#VARIABLE_CONDITION= 116 [2] [100] [0]
}

; Russian Winter Reduces Supply Again - Normal
{ 
#NAME= Russian Winter (1942)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 0
#AI= 0
#LEVEL= 0
#GV= 7[1,90]
#LINK= 0[0]
#TRIGGER= 10
#COUNTRY_ID= 116
#ALIGNMENT_ID= 0
#FLAG_ID= 116
#SEASON_FLAG= 4
#DATE= 1942/12/01
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 140,8 [0,2]
#DESTINATION_RESOURCE= 142,11 [0,2]
#DESTINATION_RESOURCE= 139,18 [0,2]
#DESTINATION_RESOURCE= 142,16 [0,2]
#DESTINATION_RESOURCE= 146,16 [0,2]
#DESTINATION_RESOURCE= 146,23 [0,2]
#DESTINATION_RESOURCE= 146,7 [0,2]
#DESTINATION_RESOURCE= 151,13 [0,2]
#DESTINATION_RESOURCE= 152,15 [0,2]
#DESTINATION_RESOURCE= 152,17 [0,2]
#DESTINATION_RESOURCE= 149,18 [0,2]
#DESTINATION_RESOURCE= 151,19 [0,2]
#DESTINATION_RESOURCE= 152,21 [0,2]
#DESTINATION_RESOURCE= 155,21 [0,2]
#DESTINATION_RESOURCE= 154,12 [0,2]
#DESTINATION_RESOURCE= 159,13 [0,2]
#DESTINATION_RESOURCE= 164,25 [0,2]
#VARIABLE_CONDITION= 116 [2] [100] [0]
}

; Russian Winter Reduces Supply - VARIANT
{ 
#NAME= VARIANT - Russian Winter (1941)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 7[91,100]
#LINK= 0[0]
#TRIGGER= 100
#COUNTRY_ID= 116
#ALIGNMENT_ID= 0
#FLAG_ID= 116
#SEASON_FLAG= 4
#DATE= 1941/12/01
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 140,8 [1,2]
#DESTINATION_RESOURCE= 142,11 [1,2]
#DESTINATION_RESOURCE= 139,18 [1,2]
#DESTINATION_RESOURCE= 142,16 [1,2]
#DESTINATION_RESOURCE= 146,16 [1,2]
#DESTINATION_RESOURCE= 146,23 [1,2]
#DESTINATION_RESOURCE= 146,7 [1,2]
#DESTINATION_RESOURCE= 151,13 [1,2]
#DESTINATION_RESOURCE= 152,15 [1,2]
#DESTINATION_RESOURCE= 152,17 [1,2]
#DESTINATION_RESOURCE= 149,18 [1,2]
#DESTINATION_RESOURCE= 151,19 [1,2]
#DESTINATION_RESOURCE= 152,21 [1,2]
#DESTINATION_RESOURCE= 155,21 [1,2]
#DESTINATION_RESOURCE= 154,12 [1,2]
#DESTINATION_RESOURCE= 159,13 [1,2]
#DESTINATION_RESOURCE= 164,25 [1,2]
#VARIABLE_CONDITION= 116 [2] [100] [0]
}

; Russian Winter Reduces Supply Again
{ 
#NAME= VARIANT - Russian Winter (1942)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 0
#AI= 0
#LEVEL= 0
#GV= 7[91,100]
#LINK= 0[0]
#TRIGGER= 10
#COUNTRY_ID= 116
#ALIGNMENT_ID= 0
#FLAG_ID= 116
#SEASON_FLAG= 4
#DATE= 1942/12/01
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 140,8 [0,1]
#DESTINATION_RESOURCE= 142,11 [0,1]
#DESTINATION_RESOURCE= 139,18 [0,1]
#DESTINATION_RESOURCE= 142,16 [0,1]
#DESTINATION_RESOURCE= 146,16 [0,1]
#DESTINATION_RESOURCE= 146,23 [0,1]
#DESTINATION_RESOURCE= 146,7 [0,1]
#DESTINATION_RESOURCE= 151,13 [0,1]
#DESTINATION_RESOURCE= 152,15 [0,1]
#DESTINATION_RESOURCE= 152,17 [0,1]
#DESTINATION_RESOURCE= 149,18 [0,1]
#DESTINATION_RESOURCE= 151,19 [0,1]
#DESTINATION_RESOURCE= 152,21 [0,1]
#DESTINATION_RESOURCE= 155,21 [0,1]
#DESTINATION_RESOURCE= 154,12 [0,1]
#DESTINATION_RESOURCE= 159,13 [0,1]
#DESTINATION_RESOURCE= 164,25 [0,1]
#VARIABLE_CONDITION= 116 [2] [100] [0]
}

; Allied Strategic Bombing - VARIANT
{ 
#NAME= VARIANT - Allied Strategic Bombing (Berlin, Leipzig, Breslau, Essen, Cologne)
#POPUP= VARIANT - Allied Strategic Bombing Concentrates on Germany's Critical Industry
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 3[41,60]
#LINK= 0[0]
#TRIGGER= 10
#COUNTRY_ID= 115
#ALIGNMENT_ID= 0
#FLAG_ID= 115
#SEASON_FLAG= 0
#DATE= 1944/01/01
#SOURCE_POSITION= 81,23 [22]
#DESTINATION_RESOURCE= 123,21 [1,3]
#DESTINATION_RESOURCE= 121,23 [1,3]
#DESTINATION_RESOURCE= 127,23 [1,3]
#DESTINATION_RESOURCE= 117,21 [1,3]
#DESTINATION_RESOURCE= 116,23 [1,3]
#VARIABLE_CONDITION= 112 [2] [100] [0]
#VARIABLE_CONDITION= 115 [2] [100] [0]
}